package sketch.util;

public class Checker {
	public static void checkNull(Object obj, String message) {
		if(obj == null) {
			throw new AssertionError(message);
		}
	}
	
	public static void checkTrue(boolean condition, String message) {
		if(!condition) {
			throw new AssertionError(message);
		}
	}
	
	public static void fail(String message) {
		throw new AssertionError(message);
	}
}
